-
Notifications
You must be signed in to change notification settings - Fork 43
Add test coverage for top level data key merging #2681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| successes: null | ||
| violations: [] | ||
| warnings: | ||
| - msg: '{"george":"lead","john":"rhythm","paul":"bass","ringo":"drums"}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the important part. Notice how we get the merged data.
| --- | ||
|
|
||
| [multiple data source top level key clash:stderr - 1] | ||
| Error: error validating file input.json: evaluating policy: load: load documents: 1 error occurred during loading: ${TEMP}/ec-work-${RANDOM}/dat${RANDOM}/${RANDOM}/data.yaml: merge error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The merge error.
|
IIUC the tekton lint failure is one we usually ignore. Actually I created #2682 to squelch it. |
bbdebd7 to
1d1b378
Compare
|
Rebased to remove tekton lint fails. |
The motivation is to make sure PR conforma#2656 doesn't change this behavior and potentially break things. The two things being verified: - If the value of the top level key is a map, then the map keys from each data source get merged - If the value of the top level key is not a map, then we fail hard with an error. Ref: https://issues.redhat.com/browse/EC-1418
Should fix a go mod tidy lint error.
1d1b378 to
2e98f3e
Compare
|
Fixed two more lint errors, one about the license preamble, and one go mod tidy. Hopefully good now, will set it to automerge and 🤞 . |
The motivation is to make sure PR #2656 doesn't change this behavior and potentially break things.
The two things being verified:
Ref: https://issues.redhat.com/browse/EC-1418